package com.zy.server.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张鑫
 * @since 2020-11-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_osslog")
@AllArgsConstructor
@NoArgsConstructor
public class Osslog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String objname;

    private String bname;

    private String url;

    /**
     * 标记位 1.用户头像 2动态图片
     */
    private Integer flag;

    private Date ctime;

    private Date etime;

    private int uid;

    public Osslog(String objname, String bname, String url, Integer flag, Date etime, int uid) {
        this.objname = objname;
        this.bname = bname;
        this.url = url;
        this.flag = flag;
        this.etime = etime;
        this.uid = uid;
     }
}
